<%--
  Created by IntelliJ IDEA.
  User: 24170
  Date: 2021/7/2
  Time: 10:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <c:if test="${weather != null}" >
        <span>所在城市：${weather[0]}</span>
        <span>天气状况：${weather[1]}</span>
        <span>当前温度：${weather[2]}</span>
        <img alt="" src="/goods/weather_img/${weather[3]}">-
        <img alt="" src="/goods/weather_img/${weather[4]}">
    </c:if>

    <c:if test="${weather == null}">
        <jsp:forward page="/WebService/Weather"></jsp:forward>
    </c:if>

</body>
</html>
